package com.itggm.service;

import com.itggm.Result.ResponseResult;
import com.itggm.dto.*;
import com.itggm.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author root
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2024-12-18 09:43:17
*/
public interface UserService extends IService<User> {

    ResponseResult login(UserLoginDTO userLoginDTO, HttpServletRequest request);

    ResponseResult getPersonalInfo(String token);


    ResponseResult editPersonalInfo(EditPersonalInfoDTO editPersonalInfoDTO);

    ResponseResult editPersonalPwd(String token, EditPersonalPwdDTO editPersonalPwdDTO);

    ResponseResult logout(String token);

    ResponseResult userPage(UserPageDTO userPageDTO);

    ResponseResult addUser(UserDTO userDTO);

    ResponseResult editUser(UserDTO userDTO);

    ResponseResult deleteUsers(String ids);

    ResponseResult resetPassword(Integer id);

    ResponseResult changeUserState(UserStateDTO userStateDTO);

    ResponseResult getUserMenu(String token);
}
